package StudyCode.summary.mydatetime;

import java.time.Month;
import java.time.MonthDay;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class UsingMonthDay {
	public static void main(String[] args) {
		MonthDay monthDay = MonthDay.of(Month.FEBRUARY, 29);
		if (monthDay.isValidYear(2015)) {
			System.out.println("2015年有" + monthDay);
		} else {
			System.out.println("2015年没有" + monthDay);
		}
	}
}
